package com.chenqi.service;

import com.chenqi.model.entity.Relationship;

/**
 * @description: 关系业务接口
 * @program: ardaicommunity
 * @author: ChenQi
 * @create: 2021-03-2021/3/11-14-39
 */
public interface RelationshipService {

    /**
     * 关注作者
     *
     * @param parent_id
     * @param follower_id
     * @return
     */
    int subscribe(Integer parent_id, Integer follower_id);

    /**
     * 取消关注
     * @param parent_id
     * @param follower_id
     * @return
     */
    int unsubscribe(Integer parent_id, Integer follower_id);

    /**
     * 校验是否关注
     * @param parent_id
     * @param follower_id
     * @return
     */
    Relationship validate(Integer parent_id, Integer follower_id);
}
